package org.acme.cluster.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "sys_sms")
public class SysSms {

    //主键ID
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    //手机号
    @TableField(value = "phone")
    private String phone;

    //短信内容
    @TableField(value = "content")
    private String content;

    //运行服务节点
    @TableField(value = "server_key")
    private String serverKey;

    //发送状态
    @TableField(value = "status")
    private boolean status;

    //发送失败次数
    @TableField(value = "retry_count")
    private int retryCount;

    //下次重试时间
    @TableField(value = "next_retry_time")
    private Date nextRetryTime;

    //发送失败原因
    @TableField(value = "error_msg")
    private String errorMsg;

    //创建时间
    @TableField(value = "create_time")
    private Date createTime;

    //更新时间
    @TableField(value = "update_time")
    private Date updateTime;
}
